package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 分级箍设计数据 对应表 CM_COLLAR_DESIGN
public class CM_CollarDesign extends BABaseEntity  {
    @Id
    @GenericGenerator(name="collarDesignGenerator", strategy="uuid")
    @GeneratedValue(generator="collarDesignGenerator")
    private String CM_CollarDesign_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "FACTORY", length = 50)
    private String factory;

    @Basic
    @Column(name = "COLLAROPENPRESSURE")
    private Double collarOpenPressure;

    @Basic
    @Column(name = "COLLARCLOSEPRESSURE")
    private Double collarClosePressure;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
